<?php require_once('../../core/import.php');?>
<?php User::Permission('SHIPYARD_ADD'); ?>
<?php
    if($_SERVER['REQUEST_METHOD']=='POST')
    {
        #上传数据
	  $Data=array
		(
			'Title'=>Functions::FormArgs('Title'),
			'Shipyard_Name'=>Functions::FormArgs('Shipyard_Name'),
			'Shipowner_Name'=>Functions::FormArgs('Shipowner_Name'),
			'Shipyard_Nationality'=>Functions::FormArgs('Shipyard_Nationality'),
			'ShipType'=>Functions::FormArgs('ShipType'),
			'Amount'=>Functions::FormArgs('Amount'),
			'GiveDatetime'=>Functions::FormArgs('GiveDatetime'),
			'OrderDatetime'=>Functions::FormArgs('OrderDatetime'),
			'URL'=>Functions::FormArgs('URL'),
			'Datetime'=>date('Y-m-d G:i:s')
		);
        DB::Insert('shipyard_ordersheet',$Data);
		//信息统计
		User::Statistics_User('SHIPYARD_ADD','shipyard_ordersheet','资讯版块');
		echo '{"Number":"0","Description":"发布成功"}';
    }
?>